package com.example.mapper;

import com.example.pojo.UserPass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface LoginMapper {
    @Select("select * from user_pass where id=#{id} and passwd=#{passwd}")
    UserPass select(UserPass userPass);

    /*
    * 修改密码
    * */
    @Update("update user_pass set passwd=#{passwd}")
    void updatePassWord(UserPass userPass);
}
